/**
 * Created by dllo on 18/3/29.
 */
public class Question04 {
    public static void main(String[] args) {
        //abc+cba=1333
        //100a+10b+c+100c+10b+a=1333
//        101a+10b+101c+10b=1333
//        101(a+c)+20b=1333
//        a+c=13
//        for (int a=4;a<9)
        for (int i = 0; i < 1000; i++) {
            int abc=i;
            int a = abc / 100;//求abc百位
            int b = abc % 100 / 10;//求abc十位
            int c = abc % 100 % 10;
            int cba = c * 100 + b * 10 + a;
            if (abc + cba == 1333) {
                System.out.println(abc);
            }
        }
    }
}
